package net.onceface.application;

import java.util.List;

import net.onceface.application.commons.InvokeResult;
import net.onceface.application.dto.ClientDTO;
import net.onceface.core.domain.Client;

public interface ClientApplication {
	
	ClientDTO getClient(Long id);
	
	void saveClient(ClientDTO client);
	
	void updateClient(ClientDTO client);
	
	void removeClient(ClientDTO client);
	
	void removeClients(List<ClientDTO> Client);
	
	List<Client> findAllClient();
	
	/**
	 * 按用户账户获取用户详细信息
	 * **/
	InvokeResult findClientByAccount(String userAccount);
	
	/**
	 * 按用户账户查找可用的账户(登陆专用)
	 * **/
	ClientDTO findAvailableClientByUserAccount(String userAccount);
}
